package com.ruoyi.major.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 专业信息管理对象 major
 * 
 * @author chenxl
 * @date 2025-04-09
 */
public class major extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 唯一标识 */
    private String id;


    /** 一级学科id */
    private String  disciplineId;

    /** 专业代码 */
    @Excel(name = "专业代码")
    private String majorCode;

    /** 专业名称 */
    @Excel(name = "专业名称")
    private String majorName;

    /** 专业英文名称 */
    @Excel(name = "专业英文名称")
    private String majorNameEn;

    /** 所属学院ID */
    @Excel(name = "所属学院ID")
    private String collegeId;

    /** 专业简介 */
    @Excel(name = "专业简介")
    private String majorIntroduction;

    /** 学制（年） */
    @Excel(name = "学制", readConverterExp = "年=")
    private Long educationalSystem;

    /** 培养类型 */
    @Excel(name = "培养类型")
    private Long cultureCategory;

    /** 开设时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开设时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }

    public String getDisciplineId() {
        return disciplineId;
    }

    public void setDisciplineId(String disciplineId) {
        this.disciplineId = disciplineId;
    }


    public void setMajorCode(String majorCode) 
    {
        this.majorCode = majorCode;
    }

    public String getMajorCode() 
    {
        return majorCode;
    }

    public void setMajorName(String majorName) 
    {
        this.majorName = majorName;
    }

    public String getMajorName() 
    {
        return majorName;
    }

    public void setMajorNameEn(String majorNameEn) 
    {
        this.majorNameEn = majorNameEn;
    }

    public String getMajorNameEn() 
    {
        return majorNameEn;
    }

    public void setCollegeId(String collegeId) 
    {
        this.collegeId = collegeId;
    }

    public String getCollegeId() 
    {
        return collegeId;
    }

    public void setMajorIntroduction(String majorIntroduction) 
    {
        this.majorIntroduction = majorIntroduction;
    }

    public String getMajorIntroduction() 
    {
        return majorIntroduction;
    }

    public void setEducationalSystem(Long educationalSystem) 
    {
        this.educationalSystem = educationalSystem;
    }

    public Long getEducationalSystem() 
    {
        return educationalSystem;
    }

    public void setCultureCategory(Long cultureCategory) 
    {
        this.cultureCategory = cultureCategory;
    }

    public Long getCultureCategory() 
    {
        return cultureCategory;
    }

    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("disciplineId", getDisciplineId())
            .append("majorCode", getMajorCode())
            .append("majorName", getMajorName())
            .append("majorNameEn", getMajorNameEn())
            .append("collegeId", getCollegeId())
            .append("majorIntroduction", getMajorIntroduction())
            .append("educationalSystem", getEducationalSystem())
            .append("cultureCategory", getCultureCategory())
            .append("startTime", getStartTime())
            .toString();
    }
}
